<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 111
  Date: 2023/6/4
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<a href="/car/add"><button>添加</button></a>
<hr>
<table border="1" width="500">
    <tr>
        <th>序号</th>
        <th>车辆名称</th>
        <th>所属品牌</th>
        <th>车辆简介</th>
        <th>价格</th>
        <th>录入时间</th>
    </tr>

    <c:forEach items="${list}" var="car">
        <tr>
            <td>${car.cid}</td>
            <td>${car.CName}</td>
            <td>${car.brandName}</td>
            <td>${car.content}</td>
            <td>${car.price}</td>
            <td>${car.LTime}</td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
